package com.study.scala.oop

import scala.beans.BeanProperty

class Worker {
  
  @BeanProperty
  var name: String="zsc";

}

object Worker {
  def main(args: Array[String]): Unit = {

    val worker = new Worker();
    worker.getName()
  }
} 